UNOMI-968: Pluggable persistence IT harness for ES, OS, and other backends#833
Merged
Merged
Conversation
…kends Extract PersistenceITBackend SPI with capability-based skips so the same CorePersistenceITs/AllITs suite runs on Elasticsearch and OpenSearch as before, while external providers (PostgreSQL, etc.) can plug in via ServiceLoader without forking Unomi IT sources.
…er file RAT requires the Apache License header on the META-INF/services registration file. Also document -Pintegration-tests when installing the itests test-jar.
Scale remaining-time estimates from historical per-test durations (EMA), keyed by persistence provider, and skip failed/ignored tests so CI and local runs get stabler ETAs without mixing ES/OS/PostgreSQL timings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PersistenceITBackendSPI (featureOptions,configurationOptions, distribution feature, ConfigAdmin PID, lifecycle hooks) so Elasticsearch / OpenSearch wiring moves out ofBaseITwithout changing default CI behaviour.PersistenceITCapabilities(HTTP admin API, rollover API shape, snapshot-restore migration, health probes, flattened-range query outcome) so search-specific ITsAssume-skip on unsupported providers instead of hard-coding vendor names.AllITsand newCorePersistenceITsmembership identical for maximum coverage; publishunomi-iteststest-jar + document ServiceLoader /-Dunomi.persistence.it.backendextension initests/README.md.JIRA: UNOMI-968
Test plan
AllITs) greenAllITs) greenRolloverITstill asserts ILM on ES / ISM on OSMigrate16xToCurrentVersionITruns fully on ES and is Assumed skipped on OS (not false-pass)HealthCheckITstill expects exactly 5 probes on ES/OSJSONSchemaITflattened-range branch: EMPTY on ES, HITS on OSCorePersistenceITsvia ServiceLoader (not part of this ASF change)